import { httpPost } from '../../utils/axios-utils'

export function apiList(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/list', obj, authConfig)
}

export function apiPageList(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/pageList', obj, authConfig)
}

export function apiAdd(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/add', obj, authConfig)
}

export function apiBatchEdit(arr, authConfig) {
  return httpPost('/smart-cost/sys/api/batchEdit', arr, authConfig)
}

export function apiDelete(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/delete', obj, authConfig)
}

export function apiReset(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/reset', obj, authConfig)
}

export function apiQueryDiff(obj, authConfig) {
  return httpPost('/smart-cost/sys/api/queryDiff', obj, authConfig)
}
